﻿--[[
    @Brief    登录字符串帮助函数
    @Author    jameszhai
    @Date    2017-05-24
--]]

EStrDefine = 
{
    STR_SEC_CHECK_TIPS  = "SecCheckTips";
    STR_STATE_SCAN_GAME    = "ScanGameState";
    STR_VALID_ACC_STATE = "ValidAccState";
    STR_SECFORBID_LOGIN = "CanNotLogin";
    STR_VERCHECK_ERROR  = "VerCheckFail";
    STR_WECHAT_AUTH_SUCC = "WeChatAuthSucc";
    STR_FACEBOOK_AUTH_SUCC = "FacebookAuthSucc"
};

TStrHelper = 
{
    InitHelper = function()
        TStrHelper.zStrMap = {};

        TStrHelper.zStrMap[EStrDefine.STR_SEC_CHECK_TIPS ] = LoadStr(ID_LOGIN_SEC_CHECK_TIPS);
        TStrHelper.zStrMap[EStrDefine.STR_STATE_SCAN_GAME] = LoadStr(ID_LOGIN_STATE_SCAN_GAME);
        TStrHelper.zStrMap[EStrDefine.STR_VALID_ACC_STATE] = LoadStr(ID_LOGIN_VALID_ACC_STATE);
        TStrHelper.zStrMap[EStrDefine.STR_SECFORBID_LOGIN] = LoadStr(ID_LOGIN_SECFORBID_LOGIN);
        TStrHelper.zStrMap[EStrDefine.STR_VERCHECK_ERROR ] = LoadStr(ID_LOGIN_VERCHECK_ERROR);
        TStrHelper.zStrMap[EStrDefine.STR_WECHAT_AUTH_SUCC] = LoadStr("STR_LOGIN_WECHAT_AUTH_SUCC");
        TStrHelper.zStrMap[EStrDefine.STR_FACEBOOK_AUTH_SUCC] = LoadStr("STR_LOGIN_FACEBOOK_AUTH_SUCC");

    end;

    GetString = function(sText)
        return TStrHelper.zStrMap[sText];
    end;

    zStrMap = {};

};